import java.util.Scanner;
public class CatAndMouseTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Cat a=new Cat("豆豆",10,70);
        Mouse b=new Mouse("灰灰",2,30);
        System.out.println("请确认猫是否抓住老鼠：");
        String q=in.next();
        switch(q){
            case "是":{
                a.bite();
                b.bite();
            }
            break;
            case "否":{
                a.defeat();
                b.defeat();
            }
            break;
            default:
                System.out.println("输入错误。");
        }
    }
}
